<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/11/10 0010
 * Time: 16:40
 */

use think\facade\Request;
use think\facade\Route;

$version = Request::header('x-version') ? : 'v1';
Route::post('login',  'Login/index');

Route::group('api', function () use ($version) {
    Route::get('wx_config', 'api/' . $version . '.WxConfig/index'); // 小程序配置项

    Route::get('index', 'api/' . $version . '.Index/index'); // 首页信息
});